package ecnu.ecgbackend.service;

import ecnu.ecgbackend.utils.ResponseObject;
import ecnu.ecgbackend.utils.StatusObject;
import ecnu.ecgbackend.utils.TaskObject;

import java.io.IOException;
import java.net.MalformedURLException;
import java.util.Map;

public interface DiagnosisAiDiagnosisService {
    String doStaticDiagnosis(int samplingRate,double inputUnitMv,String filePath) throws IOException;
    ResponseObject saveStaticDiagnosis(String fileName) throws IOException;
    TaskObject saveDynamicDiagnosis(String fileName) throws IOException;
    boolean editStaticRawDataStatus(String status,String rawDataId,String report);
    boolean isIntegralEnough();
    StatusObject getDynamicStatus(String taskId) throws MalformedURLException, IOException;
    public Map<String, Object> getHistoryService(String category, int pageNum, int pageSize) throws IOException;
    Map<String,Object> getDynamicResult(String rawDataId) throws IOException;
    String getStaticResult(String rawDataId);
    boolean editArtificialDiagnosisReport(String rawDataId,String patientId,String report);

}
